package com.sdy.dcsb.biz.service.impl;

import com.sdy.dcsb.biz.mapper.EsbEncapsulationRelateMapper;
import com.sdy.dcsb.biz.model.EsbEncapsulationRelate;
import com.sdy.dcsb.biz.model.swagger.RelateInfo;
import com.sdy.dcsb.biz.service.EsbEncapsulationRelateService;
import com.sdy.mvc.service.impl.BaseServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Snaky
 */
@Slf4j
@Service
public class EsbEncapsulationRelateServiceImpl extends BaseServiceImpl<EsbEncapsulationRelate> implements EsbEncapsulationRelateService {

    @Autowired
    private EsbEncapsulationRelateMapper mapper;

    /**
     * 获取关联接口信息
     *
     * @param id 封装接口id
     */
    @Override
    public List<RelateInfo> getRelateInfo(Integer id) {
        return mapper.getRelateInfo(id);
    }
}
